package com.vip.admin.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

@Configuration
@MapperScan(basePackages={"com.vip.admin.modules.**.mapper*"})
public class MybatisPlusConfig {
	 @Bean
	 public PaginationInterceptor paginationInterceptor() {
	        // 设置sql的limit为无限制，默认是500
	     return new PaginationInterceptor().setLimit(-1);
	 }
}
